package com.qt.file;

import java.io.File;

/**
 * @Author zsf
 * @Date 2023/9/19 21:26
 * @Version 1.0
 */
public class IoDemo01 {

    public static void main(String[] args) {

        String str1 = "D:\\java测试目录";
        String str2 = "a.txt";

        File file = new File(str1, str2);
        System.out.println(file);
        File file2 = new File("D:\\java测试目录\\a.txt");

        System.out.println(file.isDirectory());
        System.out.println(file.isFile());
        System.out.println(file.exists());
        System.out.println("---------------");
        System.out.println(file2.isDirectory());
        System.out.println(file2.isFile());
        System.out.println(file2.exists());




    }



}
